using System;
namespace iPuz.Gui
{
	public partial class WinScore : Gtk.Dialog
	{
		private uint _moves = 0;
		
		protected virtual void OnBtnAdd_Activated (object sender, System.EventArgs e)
		{
			// addn new (name, score)
			// sort list by score
			Console.WriteLine ("added");
		}
		
		
		public WinScore (uint moves)
		{
			this.Build ();
			
			_moves = moves;
		}
		
		protected virtual void OnTxtName_Changed (object sender, System.EventArgs e)
		{
			if (_txtName.Text.Trim() != string.Empty && _txtName.Text.Trim().Length >= 3)
				_btnAdd.Sensitive = true;
			else {
				_btnAdd.Sensitive = false;
			}
		}
		
		
	}
}

